Yes, with you decoded (the one you decoded from the userDefaults)
`selectionToBlock = savedBlockers()
You set the decoded data as the FamilyActivitySelection
Post
Replies
Boosts
Views
Activity
The extension and the application are different processes so:
They are 2 different instances because each one "lives" on a different process .
You can use a shared userDefaults or any other persistency (you can share a database file and change it in one process and read from the other)
Read this:
[https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html)
Good luck
For me, this was happening when I run tests.
Eventually after looking at the spin dump I discovered some issue with one of the pods I was using (With Cocoapods)
removing that pod solved the issue
OK, its just dark mode ;)
Sorry
Same here, its been a month.
did anyone get a reply?
@kmart Thanks for the reply but I do see apps that have managed to change the background of the picker. attaching screenshot
Sorry, The post says I do not get the intervalDidStartEvent and the IntervalDidEnd
But I would still like to hear a good approach for setting several schedules
Can you open a stackoverflow question or better explain your issue?
Can you open a stackoverflow question or better explain your issue?
These are all codable so you can just do this:
var selectionToDiscourage: FamilyActivitySelection
if let encoded = try? JSONEncoder().encode(self.selectionToDiscourage) {
UserDefaults.standard.set(encoded, forKey: defaultsRestrictionsKey)
}
Hi Eskimo,
I see that on iOS 15 with a network extension -displayMessage:completionHandler: has stopped working.
It was working fine on iOS 14.
It's marked as deprecated, I get this fix suggestion on Xcode:
'displayMessage(_:completionHandler:)' was deprecated in iOS 12.0: renamed to 'UILocalNotification'
Can you confirm?
Sounds like there is no alternative? (I guess that the fix suggestion that Xcode gives - "use UILocalNotification" is not correct)
You should add the code for "deleteConversion", otherwise it will very hard to help you
Thank you, Matt!
And what will happen if I remove the "old" network extension identifier and the app group identifier from the "old" developer account - Add them to the new developer account - everything should be the same on the app (same group and same extension identifiers under the new account)
This will actually mean that the possible issue of 2 network extensions is gone, right?
Have you tried closing and re-opening Xcode?
Restarting Xcode solved this issue for me.